package nuc.ss.wl.service.impl;

import nuc.ss.wl.dao.ClassDao;
import nuc.ss.wl.dao.impl.ClassDaoImpl;
import nuc.ss.wl.service.ClassService;

import java.util.List;
import nuc.ss.wl.entity.Class;

public class ClassServiceImpl implements ClassService {

    ClassDao cd = new ClassDaoImpl();
    @Override
    public int add(Class clazz) {
        return cd.save(clazz);
    }

    @Override
    public List<Class> findAll() {
        return cd.findAll();
    }

    @Override
    public int delete(int classno) {
        return cd.delete(classno);
    }

    @Override
    public Class findById(int classno) {
        return cd.findById(classno);
    }

    @Override
    public int update(Class clazz) {
        return cd.update(clazz);
    }
}
